﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace Finance.Utility
{
   public class Encrypt
    {
       public static string Md5(string str)
       {
           var md5 = MD5.Create();
           var bytes = md5.ComputeHash(Encoding.UTF8.GetBytes(str));
           return BitConverter.ToString(bytes).Replace("-", "").ToLower();
       }
    }
}
